<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2019/6/18/018
  Time: 19:53
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" isELIgnored="false" %>
<html>
<head>
    <title>修改</title>
    <link rel="stylesheet" href="/css/bootstrap.min.css">
    <style>
        .form1{
            margin:0 auto ;
            width:400px;
        }
    </style>
</head>
<body>
    <%!String name;
        int id;%>
    <%
        name=request.getParameter("name");
        id=Integer.valueOf(request.getParameter("id"));
    %>
    <div class="form1">
        <form method="get" action="/userUpdate">
            <div class="form-group" style="width: 330px;margin-top: 30px;">
                <P> 用户id：</P> <input   type="text" class="form-control"  value="<%=id%>" name="id" required="required" readonly="true">
            </div>
            <div class="form-group" style="width: 330px;margin-top: 30px;">
                <P> 用户姓名：</P> <input   type="text" class="form-control"  value="<%=name%>" name="name" required="required" readonly="true">
            </div>
            <div class="form-group" style="width: 330px;margin-top: 30px;">
                <P> 密码：</P> <input  type="password" class="form-control"  name="passwd" required="required">
            </div>
            <div class="form-group" style="width: 330px;">
                <P> 用户角色：</P>
                <select name="role">
                    <option value="0">普通用户</option>
                    <option value="1">管理员</option>
                </select>
            </div>
            <button style="color: #2e6da4" type="submit" class="btn btn-default">修 改</button>
        </form>
    </div>
</body>
</html>
